home *** CD-ROM | disk | FTP | other *** search
- Path: thunder.ocis.temple.edu!akim
- From: akim@thunder.ocis.temple.edu (Andrew Kim)
- Newsgroups: comp.lang.c
- Subject: Don't Read This
- Date: 10 Feb 1996 01:59:19 GMT
- Organization: Temple University, Academic Computer Services
- Message-ID: <4fgu5n$75u@cronkite.ocis.temple.edu>
- NNTP-Posting-Host: thunder.ocis.temple.edu
- NNTP-Posting-User: akim
- X-Newsreader: TIN [version 1.2 PL2]
-
- Please help.
- I thought I could get your attention to help me here.
- I am trying to do the following:
-
- 1. Write a main program that will use following functions:
- a) int get_int ()
- b) int get_int_in_range ()
- c) float get_float ()
- d) float get_float_in_range ()
-
- 2. Above program will used the above listed functions to get necessary
- information to compute miles per gallon your car will be driven. Int
- will be used for your mileage data and float will be used for gas used.
-
- 3. It is obvious the get_int and get_float will not be used over and
- over again, but get_int_in_range and get_float_in_range will be used more
- than once. The program is to use negative number as a sentinel value and
- range is used to accept numbers so you will not be buying more gas than
- your car can fill-up with. Furthermore, your car will not drive 200
- miles per gallon, and your program is to accept a reasonable numbers only.
-
- Anyone programing this will receive a kudo from me, yours truly,
-
-
- Andrew.
-
-
-
-
-